import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import ChartLine from '../views/ChartLine'

Vue.use(Router)

export const constantRouterMap = [
  {path: '/', name: 'HelloWorld', component: HelloWorld},
  {path: '/line', name: 'Line', component: ChartLine}
]

export default new Router({
  mode: 'history', // mode: history/hash
  routes: constantRouterMap
})

export const asyncRouterMap = []
